-
Notifications
You must be signed in to change notification settings - Fork 1.4k
🌱 Add BootstrapFailedMachineError error #10360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/area machine |
/ok-to-test |
@mcbenjemaa this would be very useful. These kind of errors though might happen after the iaas considers an instance started, in which case they are not surfaced/exposed in any immediate consumable way. Can you articulate an example of how such a failure would be detected and bubble up here? To make sure we approach this holistically and come up with the most valuable approach, we might want to start by writing down some failure scenarios and how they would be surfaced. |
I'm Using CAPI provider for Proxmox, With Proxmox im calling the API to check the status of cloud-init. And based on that, will mark a machine as Bootstrap Failed, |
I'd expect such kind of failures to be captured in a condition, that then we signal as permanent failure. At the lack of a mechanism for the above, should this failure be captured in the ProxmoxMachine Ready condition? that would then be bubbled up to the Machine? |
In my case, I don't know whether it's good to have it in conditions. But in case of control planes, the cluster should be marked failed i guess. |
Can we get this merged so we can rely on this condition? |
The /errors package has its origin in when capi providers were machineActuators that needed to vendor core capi to function. Would using a condition/reason be sufficient for your use case #10360 (comment)? |
/hold |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
As we deprecated the entire package in #10784, we should not add new constants to it now /close |
@sbueringer: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What this PR does / why we need it:
In some infra providers, we need more configuration to provision a cluster.
For example, cloud-init config and control plane endpoint.
Since there are no validations for those configs, the Bootstrap (cloud-init) may fail due to misconfiguration, and we need to figure out why.
Having a new machine error reason will give clear idea what's happening to users
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
/area machine